﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Demo.Framework.DataStructure.Problems.AthleteTower
{
    class Program
    {
        static void Main(string[] args)
        {
            List<Tuple<int, int>> parameters = new List<Tuple<int, int>>()
            {
               Tuple.Create(1,6),
               Tuple.Create(4,12),
               Tuple.Create(5,17),
               Tuple.Create(4,11),
               Tuple.Create(9,6),
               Tuple.Create(3,8)             
            };

            AthleteTower tower = new AthleteTower(5, parameters);

            try
            {
                Console.WriteLine(tower.GetMaxTowerHeight());
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }

            Console.Read();
        }
    }
}
